<div class="navigation_div">
  {foreach from = $pages item = elem}
    <a href="{$elem.link}curr_page={$elem.page}"><span class="{$elem.curr}">{$elem.pageName}</span></a>
  {/foreach}
</div>